package com.egoo.ticket.server.service.impl;

import com.egoo.ticket.server.dao.WorkBanchDataDao;
import com.egoo.ticket.server.service.WorkBanchDataService;
import com.egoo.ticket.server.utils.common.DbResponse;
import com.egoo.ticket.server.utils.common.ResponseConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

@Service
public class WorkBanchDataServiceImpl implements WorkBanchDataService {
	@Autowired
	WorkBanchDataDao workBanchDataDao;
	@Override
	public DbResponse selectByCondition(List<Map<String, Object>> arrayList) {
//		Map<String, Object> map = workBanchDataDao.selectByCondition(arrayList);
		List<Map<String, Object>> map = workBanchDataDao.selectByCondition(arrayList);
		return new DbResponse(ResponseConstant.RES_SUCCESS_CODE,ResponseConstant.SELECT_SUCCESS_MSG,map);
	}
}
